package com.richman.view;

import java.awt.BorderLayout;
import java.awt.Container;
import java.util.Vector;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class AccountWindowPane extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 11L;
	
	public AccountWindowPane(){
        intiComponent();  
      
	}
	
	

	
	
	private JTabbedPane jTabbedpane = new JTabbedPane();// ���ѡ������  


	HGAccountPane hgAccountPane = new HGAccountPane();
	
	ISNAccountPane isnAccountPane = new ISNAccountPane();
	
	PS38AccountPane ps38AccountPane = new PS38AccountPane();


    private void intiComponent()  
    {  

		
		
		setLayout(new BorderLayout());
		

		add(jTabbedpane);  

		jTabbedpane.add(isnAccountPane,"ISN");
		jTabbedpane.add(hgAccountPane,"SB");

		
	//	jTabbedpane.add(hasBetListPane,"已投赛事");
		
		jTabbedpane.add(ps38AccountPane,"PS38");

        

        setBounds(100, 100, 1220, 630); 

    }


	public Vector<String[]> getPS38Accounts() {
		
		return ps38AccountPane.getPS38Accounts();
	}

	public Vector<String[]> getPS38DanshiAccounts() {
		
		return ps38AccountPane.getPS38DanshiAccounts();
	}

	
	


	public Vector<String[]> getHGAccounts() {
		return hgAccountPane.getHGAccounts();
	}
	
	public Vector<String[]> getISNAccounts() {
		return isnAccountPane.getISNAccounts();
	}
	


	public void updateHGAccountStatus(String account, int statusCode) {
		hgAccountPane.updateAccoutStatus(account, statusCode);
	}


	public void updatePS38AccountStatus(String account, int statusCode) {
		ps38AccountPane.updateAccoutStatus(account, statusCode);
		
	}  
	
	public void updateISNAccountStatus(String account, int statusCode) {
		isnAccountPane.updateAccoutStatus(account, statusCode);
	}
	
}
